package com.llho.shop.product;

import java.util.ArrayList;
import java.util.List;

import com.llho.core.bo.ProductBo;
import com.llho.core.domain.Product;
import com.llho.shop.BaseAction;

public class ProductAction extends BaseAction{
	
	Product product = new Product();
	List<Product> products = new ArrayList<Product>();
	
	ProductBo productBo;
	// DI via Spring
	public void setProductBo(ProductBo productBo){
		this.productBo = productBo;
	}
	
	public String list(){
		products = productBo.getAll();
		return redirect("Listing.llh");
	}
	
	public String execute(){
		return "success";
	}
}
